If we touch test-xattrs before sourcing libtest.sh, we get:
test tmpdir=/tmp/test-tmp-ostree_test-xattrs.sh.test-HSEXEY is not
empty; run this test via `make check TESTS=`, not directly
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #234
Approved by: cgwalters
set -euo pipefail
-touch test-xattrs
-if ! setfattr -n user.testvalue -v somevalue test-xattrs; then
- echo "1..0 # SKIP: cannot run setfattr"
- exit 0
-fi
+. $(dirname $0)/libtest.sh
-echo "1..2"
+skip_without_user_xattrs
-. $(dirname $0)/libtest.sh
+echo "1..2"
setup_test_repository "archive-z2"